<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/tiles2/common.jsp"%>
<div class="page-header">
	<img class="fleft titlelogo" src="img/ext/glyphicons_138_picture.png" />
	<h1>갤러리</h1>
</div>
<article>
	<div class="row">
		<div class="span5 offset1">
			<a class="btn" id="prevbtn"><i class="icon-chevron-left"></i>&nbsp;이전게시물</a>
			<a class="btn" id="nextbtn"><i class="icon-chevron-right"></i>&nbsp;다음게시물</a>
		</div>
		<div class="span5 tright">
			<a class="btn" id="newbtn"><i class="icon-plus-sign"></i>&nbsp;새글쓰기</a>
		</div>
	</div>
	
	<div class="row">
		<div class="span10 offset1">
			<table class="table linetopdown dragdown">
				<caption class="caption">제목</caption>
				<tbody>
					<tr class="vheader">
						<td>작성자</td>
						<td class="vfooter" style="text-align: right">작성일/추천수/조회</td>
					</tr>
					<tr>
						<td colspan="2" class="vbody">본문</td>						
					</tr>
					<tr>
						<td colspan="2" class="vattach">
							<p>첨부파일 1 : vbkiw.png</p>
							<p>첨부파일 2 : xzoie.jpg</p>
							<p>첨부파일 3 : bvoeam.gif</p>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
	
	<div class="row">
		<div class="span5 offset1">
			<a class="btn btn-warning" id="updatebtn">
				<i class="icon-question-sign icon-white"></i>&nbsp;수정하기
			</a>
			<a class="btn btn-danger" id="deletebtn"><i class="icon-remove-sign icon-white">
				</i>&nbsp;삭제하기
			</a>
		</div>
		<div class="span5 tright">
			<a class="btn" id="listbtn"><i class="icon-list"></i>&nbsp;목록으로</a>
		</div>
	</div>
	
	<div class="row dragdown">
		<div class="span10 offset1">
			<div><img class="fleft titlelogo" src="img/ext/glyphicons_309_comments.png" /><h3>나도 한마디</h3></div>
			<table class="table linetopdown">
				<tr>
					<td style="width: 20%">작성자</td>
					<td colspan="2">
						<p class="replyhdr1">작성일<span class="fright">[리플추가]</span></p>
						<p>comments</p>
					</td>
				</tr>
				<tr>
					<td style="width: 20%">&nbsp;</td>
					<td colspan="2">
						<p class="replyhdr2">작성자<span class="fright">작성일</span></p>
						<p>comments</p>
					</td>
				</tr>
			</table>
		</div>
	</div>

	<div class="row dragdown">
		<div class="span10 offset1">
			<form id="conmtfrm" class="well form-inline">
				<fieldset class="control-group info">
					<label>로그인하세요</label>
					<textarea rows="5" class="span7" name="comments" id="comments"></textarea>
					<a class="btn" id="comntbtn">댓글쓰기</a>
				</fieldset>
			</form>
		</div>
	</div>	
</article>

<script>
	$("#newbtn").on("click", function(event){
		$(location).attr("href", "<c:url value='gallery/write.tiles' />");
	});
	$("#listbtn").on("click", function(event){
		$(location).attr("href", "<c:url value='gallery/list.tiles' />");
	});
	$("#prevbtn").on("click", function(event){	});
	$("#nextbtn").on("click", function(event){  });
	$("#updatebtn").on("click", function(event){
		$(location).attr("href", "<c:url value='gallery/write.tiles' />");
	});
	$("#deletebtn").on("click", function(event){
		if (confirm("정말로 진짜로 참말로?"))
			$(location).attr("href", "<c:url value='gallery/deleteok.tiles' />");
	});
	$("#comntbtn").on("click", function(event){});
</script>